<template>
  <div class="cd-setting">
    <chart-edit
      ref="chartEditRef"
      :edit-status="visible"
      :edit-from="'panel'"
      :style-only="true"
      :param="chartEditParam"
    />
  </div>
</template>
<script>
import ChartEdit from '@/components/vis/chart/view/chart-edit'
export default {
  components: { ChartEdit },
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
    chartEditParam: {
      type: Object,
      default: () => ({}),
    },
  },
  methods: {
    changeChartType(chartType) {
      this.$refs.chartEditRef && this.$refs.chartEditRef.changeChartType(chartType)
    },
  },
}
</script>
<style lang="scss" scoped>
.cd-setting {
  width: 100%;
}
</style>
